package com.casic.ops.entity.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.casic.ops.consts.Const;
import com.casic.ops.consts.app.ActionType;
import com.casic.ops.consts.app.StageType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName ops-platform
 * @Description  应用发布执行
 * @Author mianbin
 * @Date 2022/5/31 10:59
 * @Version 1.0
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("application_action")
public class ApplicationActionDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * appId
     */
    @TableField("app_id")
    private Long appId;

    /**
     * profileId
     */
    @TableField("profile_id")
    private Long profileId;

    /**
     * 名称
     */
    @TableField("action_name")
    private String actionName;

    /**
     * 类型
     *
     * @see ActionType
     */
    @TableField("action_type")
    private Integer actionType;

    /**
     * 阶段类型
     *
     * @see StageType
     */
    @TableField("stage_type")
    private Integer stageType;

    /**
     * 执行命令
     */
    @TableField("action_command")
    private String actionCommand;

    /**
     * 是否删除 1未删除 2已删除
     *
     * @see Const#NOT_DELETED
     * @see Const#IS_DELETED
     */
    @TableLogic
    private Integer deleted;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField("update_time")
    private Date updateTime;

}
